package com.xh.demo.client;

import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import com.xh.demo.commons.model.Result;
import com.xh.demo.model.table.User;
import com.xh.demo.retrofit.annotation.Sign;
import retrofit2.http.*;

@RetrofitClient(baseUrl = "${retrofit.api.baseUrl}")
@Sign(accessKeyId = "${retrofit.api.accessKeyId}", accessKeySecret = "${retrofit.api.accessKeySecret}", exclude = {"/api/test/person"})
public interface SignHttpApi {

    @GET("sign/user/{id}")
    Result<User> getUserSign(@Path("id") Long id);

    @POST("user")
    Result<User> saveUser(@Body User user);

}